﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Net.Model.Entities.Enterprises
{
    [SugarTable("AppLicenses", TableDescription = "授权表")]
    public partial class AppLicenses:BasicModel
    {
        public AppLicenses() { }

        [Display(Name = "授权Id")]
        [SugarColumn(ColumnDescription = "授权Id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        [Display(Name = "费用")]
        [SugarColumn(ColumnDescription = "费用", IsNullable = true)]
        public float? Cost { get; set; }

        [Display(Name = "单位")]
        [SugarColumn(ColumnDescription = "单位", IsNullable = true)]
        public String Unit { get; set; }

        [Display(Name = "是否激活")]
        [SugarColumn(ColumnDescription = "是否激活", IsNullable = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public Boolean IsActive { get; set; }

        [Display(Name = "授权开始日期")]
        [SugarColumn(ColumnDescription = "授权开始日期", IsNullable = true)]
        public DateTime? LicenseStartDateUtc { get; set; }

        [Display(Name = "授权开始日期")]
        [SugarColumn(ColumnDescription = "授权开始日期", IsNullable = false)]
        public DateTime LicenseEndDateUtc { get; set; }


    }
}
